<template>
  <el-row class="tac">
    <el-col :span="4" >
      <el-menu :default-active="this.$route.path" class="el-menu-vertical-demo" router>
        <router-link to="/">
          <el-menu-item index="/">
            <template #title>
              <el-icon><Search /></el-icon>
              <span>搜索</span>
            </template>
          </el-menu-item>
        </router-link>
        <router-link to="/statistics">
        <el-menu-item index="/statistics">
            <el-icon><DataLine /></el-icon>
            <span>统计</span>
        </el-menu-item>
        </router-link>
        <el-menu-item index="3">
          <el-icon><document /></el-icon>
          <span>反馈</span>
        </el-menu-item>
      </el-menu>
    </el-col>
    <el-col :span="20">
      <div>
        <!-- 内容展示区 -->
        <RouterView></RouterView>
      </div>
    </el-col>
  </el-row>
</template>

<script  setup>
import { Document, Search, DataLine } from "@element-plus/icons-vue";
import { computed } from "vue";
import { RouterView } from "vue-router";
</script>
<style scoped>
.router-link-active {
text-decoration: none;
color: yellow;
}
a{
text-decoration: none;
color: white;
}
</style>
